package com.csxy.zqm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.csxy.zqm.entity.EduCourse;
import com.csxy.zqm.entity.vo.*;

import java.util.List;
import java.util.Map;


public interface EduCourseService extends IService<EduCourse> {
    String addCourseInfo(CourseInfoForm courseInfoForm);

    // 根据课程id查询课程基本信息
    CourseInfoForm getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoForm courseInfoForm);

    boolean removeCourse(String id);

    void pageQuery(Page<EduCourse> pageParam, CourseQuery courseQuery);

    CoursePublishVo getPublishCourseInfo(String id);

    CourseWebVo getBaseCourseInfo(String courseId);



    //前端查询热门课程
    List<EduCourse> selectHotCourse();

    Map<String, Object> getCourseFrontInfo(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);
}
